@import url('style.css');

/* ==========================================================================
   LAAPSI PRODUCT STYLES (Migrated from laapsi-style.css)
   ========================================================================== */

/* LaApSi Hero Section */
.laapsi-hero-wrapper {
    height: 300vh;
    position: relative;
    background-color: #000;
}

.laapsi-mid-anim-wrapper {
    height: 200vh;
    width: 100vw;
    position: relative;
    background-color: #000;
}

.laapsi-hero {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

#scroll-video,
#mid-scroll-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
}

.laapsi-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.laapsi-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    transition: opacity 0.3s ease-out;
}

/* Interactive Cards Section */
.laapsi-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 80px 10%;
    background-color: var(--primary-bg-color);
}

.laapsi-card {
    flex: 1;
    max-width: 450px;
    background: var(--card-bg-light);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.laapsi-card h2 {
    font-size: 28px;
    color: var(--theme-primary);
    margin: 0;
    transition: all 0.5s ease;
}

.laapsi-card-description {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--secondary-text-color);
    line-height: 1.6;
    margin-top: 0;
}

.laapsi-card:hover {
    height: 350px;
    background-color: var(--highlight);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-10px);
}

.laapsi-card:hover h2 {
    color: var(--text-highlight);
    margin-bottom: 20px;
}

.laapsi-card:hover .laapsi-card-description {
    max-height: 200px;
    opacity: 1;
    margin-top: 10px;
}

/* Info Sections */
.laapsi-highlights {
    position: relative;
    height: 100vh;
    background: url("../assets/images/laapsi/laapsi\ black\ bg\ left.jpg") no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.highlights-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.highlights-container {
    position: relative;
    text-align: center;
    z-index: 2;
    padding: 0 20px;
}

.highlight-line {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    font-style: italic;
    color: var(--text-highlight);
    margin: 30px 0;
    opacity: 0;
    margin-left: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    letter-spacing: 2px;
}

@media (min-width: 769px) {
    .highlight-line {
        margin-left: 60vw;
    }
}

.laapsi-highlights.active .highlight-line {
    opacity: 1;
    transform: translateY(0);
}

.laapsi-highlights.active .highlight-line:nth-child(1) {
    transition-delay: 0.3s;
}

.laapsi-highlights.active .highlight-line:nth-child(2) {
    transition-delay: 0.6s;
}

.laapsi-highlights.active .highlight-line:nth-child(3) {
    transition-delay: 0.9s;
}

.laapsi-highlights.active .highlight-line:nth-child(4) {
    transition-delay: 1.2s;
}

.laapsi-info-section {
    padding: 80px 10%;
    background-image: url("../assets/images/laapsi/laapsi\ black\ bg\ wide.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-white);
}

.laapsi-info-section.alt {
    background-image: none;
    background-color: var(--primary-bg-color);
}

.laapsi-info-section.alt .laapsi-info-text h2 {
    color: var(--theme-primary);
}

.laapsi-info-section.alt .laapsi-info-text p {
    color: var(--secondary-text-color);
}

.laapsi-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0 20px;
}

.suture-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.laapsi-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.laapsi-ai-card {
    background: var(--card-bg-light);
    border-radius: 30px;
    padding: 60px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 1000px;
    margin: 0 auto;
}

.laapsi-ai-card .laapsi-info-text {
    width: 100%;
}

.laapsi-ai-card h2 {
    text-align: center;
    margin-bottom: 40px;
}

.laapsi-ai-card .video-placeholder {
    margin: 40px auto;
    max-width: 800px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.laapsi-ai-description {
    margin-top: 40px;
    column-count: 1;
    /* Keeping it single column as requested for text block */
}

.laapsi-info-text h2 {
    font-size: 36px;
    color: var(--color-white);
    margin-bottom: 20px;
}

.laapsi-info-text p {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e0e0e0;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-weight: 500;
    border: 2px dashed #ccc;
    overflow: hidden;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.purchase-button-container {
    margin-top: 30px;
}

.purchase-button {
    display: inline-block;
    background-color: var(--text-highlight);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(20, 71, 230, 0.3);
}

.purchase-button:hover {
    transform: scale(1.05);
    background-color: #0033cc;
    box-shadow: 0 6px 20px rgba(20, 71, 230, 0.4);
}

@media (max-width: 768px) {
    .laapsi-cards {
        flex-direction: column;
        align-items: center;
    }

    .laapsi-card {
        width: 100%;
        max-width: 100%;
    }

    .laapsi-info-grid {
        grid-template-columns: 1fr;
    }

    .laapsi-info-text {
        text-align: center;
    }

    .laapsi-ai-card {
        padding: 30px 20px;
    }

    .laapsi-ai-card h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .laapsi-ai-card .video-placeholder {
        margin: 20px auto;
    }

    .laapsi-ai-description {
        margin-top: 20px;
    }
}

/* Gallery Section */
.laapsi-gallery {
    padding: 80px 10%;
    background-color: var(--primary-bg-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-card {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background-color: #000;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0.9;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 25px 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
}

.gallery-caption h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: white;
}

.gallery-caption p {
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, ) !important;
}




@media (max-width: 768px) {
    .laapsi-gallery {
        padding: 40px 20px;
    }

    .gallery-card {
        height: 300px;
    }
}


/* ==========================================================================
   SUTURE PAD PRODUCT STYLES
   ========================================================================== */

.suture-hero-wrapper {
    height: 300vh;
    position: relative;
    background-color: #000;
}

.suture-info-section {
    padding: 80px 10%;
    color: var(--color-white);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Suture Pad Interactive Scroll Sequence */
.suture-scroll-sequence {
    position: relative;
    height: 400vh;
    background-color: #000;
}

.suture-sticky-bg {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dimming background for better text contrast */
    z-index: 10;
    transition: opacity 1s ease-in-out;
    opacity: 1;
}

.bg-overlay.hidden {
    opacity: 0;
}

.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
    opacity: 0;
    z-index: 1;
}

/* Base layer (Plain Suture Pad) - Always visible to prevent black flickering */
#bg-plain {
    opacity: 1;
    z-index: 1;
}

/* Overlay layer (Instruments) - Fades in/out on top of the plain one */
#bg-instruments {
    z-index: 2;
}

#bg-instruments.active {
    opacity: 1;
}

.suture-bg-plain {
    background-image: url("../assets/images/suturepad/wide suturepad no instruments.jpg");
}

.suture-bg-instruments {
    background-image: url("../assets/images/suturepad/wide suturepad with instruments.jpg");
}

.suture-scroll-content {
    position: relative;
    z-index: 20;
    /* Above the sticky background and overlay */
    margin-top: -100vh;
    /* Start content over the first sticky viewport */
}

.scroll-block {
    height: 100vh;
    /* Each block takes one full screen height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
    pointer-events: none;
    /* Allow clicks to pass through to sections below */
}

.scroll-block .laapsi-info-text {
    pointer-events: auto;
    /* Re-enable clicks for content inside the block */
}

.text-on-dark h2,
.text-on-dark p,
.text-on-dark li {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.text-on-dark h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.checkout-section {
    background-color: var(--primary-bg-color);
    width: 100%;
    position: relative;
    z-index: 100;
}

.text-on-dark p,
.text-on-dark li {
    font-size: 20px;
    line-height: 1.6;
    max-width: 800px;
}

.text-on-dark ul {
    margin: 20px 0;
    padding-left: 30px;
}


.product-summary-section {
    padding: 100px 10%;
    background-color: var(--color-white);
    position: relative;
    z-index: 100;
}

.summary-container {
    max-width: 1000px;
    margin: 0 auto;
}

.summary-container h2 {
    font-size: 36px;
    color: var(--color-navy-primary);
    margin-bottom: 30px;
    font-weight: 700;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
}

.summary-item h3 {
    font-size: 22px;
    color: var(--text-highlight);
    margin-bottom: 15px;
    font-weight: 700;
}

.summary-item p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text-tertiary);
}

@media (max-width: 768px) {
    .product-summary-section {
        padding: 60px 20px;
    }

    .summary-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .summary-container h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .text-on-dark h2 {
        font-size: 32px;
    }

    .text-on-dark p,
    .text-on-dark li {
        font-size: 18px;
    }
}

/* ==========================================================================
   PROJECTS PAGE STYLES (Migrated from projects-style.css)
   ========================================================================== */

.projects-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/images/laapsi/Laapsi renderd.png');
    min-height: 100vh;
}


/* Grid Layout for Projects Page - Removed to match Home Page horizontal stack */
/* 
.projects-cards {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
} 
*/